package com.haopeng.producer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.haopeng.producer.api.HelloApi;
import com.haopeng.producer.service.HelloService;

@RestController
@RequestMapping("/hello")
public class HelloController implements HelloApi {
	@Autowired
	HelloService hellService;
	@GetMapping("/say")
	public String say() {
		return hellService.sayHello();
	}

}
